package com.andsys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.beans.Transient;

/**
 * Created by ezheng on 2017/10/28.
 */
@Service
public class GirlService {

    @Autowired
    private GirlRepository girlRepository;


    @Transactional
    public void girlTwo(){
        Girl girl = new Girl();
        girl.setAge(2);
        girl.setCupSize("B");

        Girl girl2 = new Girl();
        girl2.setAge(1);
        girl2.setCupSize("A");
    }


}
